import {Entity, PrimaryGeneratedColumn, Column, ManyToOne, BaseEntity} from 'typeorm';
import { OrderPackage } from './order-package.entity';
import { Order } from './order.entity';

@Entity()
export class OrderPackageDetail extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @ManyToOne(() => OrderPackage)
    orderPackage: OrderPackage;

    @ManyToOne(() => Order)
    order: Order;

    @ManyToOne(() => Order)
    subOrder: Order;
}
